import React,{Suspense} from "react"
import Spinner from "../components/spinner"
const lazyload=(Comp:React.LazyExoticComponent<()=>JSX.Element>)=>{
    return (
        <Suspense fallback={<Spinner/>}>
            <Comp/>
        </Suspense>
    )
}
export default lazyload